home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 15 / 0 / DISK1509.ZIP / ZYAC.DOC < prev    next >
Text File  |  1988-07-18  |  45KB  |  1,217 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.                                       ZYAC
  29.  
  30.                                Calculator Utility
  31.                                    Version 2.0
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.         (c) COPYRIGHT 1988 by Gregory D. Elder;  ALL RIGHTS RESERVED
  50.  
  51.  
  52.  
  53.  
  54.  
  55.                                 Gregory D. Elder
  56.                                    Qtrs 4301-A
  57.                                  USAFA, CO 80840
  58.  
  59.  
  60.  
  61.  
  62.                                 TABLE OF CONTENTS
  63.  
  64.                                                                Page
  65.  
  66.         INTRODUCTION............................................1
  67.           Registration Notes....................................1
  68.           What is ZYAC?.........................................1
  69.           System Requirements...................................2
  70.           Distribution Files....................................3 
  71.  
  72.         STARTING ZYAC...........................................4
  73.  
  74.         SCREEN LAYOUT...........................................5
  75.  
  76.         ENTERING NUMBERS........................................6
  77.  
  78.         USING ZYAC..............................................7
  79.           ZYAC Commands.........................................7
  80.           Conversions..........................................13
  81.           Defining Functions...................................14
  82.           Initialization Files.................................15
  83.  
  84.         PROGRAM HISTORY........................................17
  85.  
  86.         REGISTRATION FORM......................................18
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.                        Copyright (C) 1988 by Gregory D. Elder
  120.         ZYAC Version 2.0 Users Guide                               Page 1
  121.  
  122.  
  123.                                   INTRODUCTION
  124.  
  125.         Registration Notes
  126.  
  127.              Version  2.0 of ZYAC,  and later versions,  are NOT  in  the 
  128.         public  domain as earlier versions.   ZYAC is now available under 
  129.         the  Shareware  concept.   This means you are free  to  copy  and 
  130.         distribute the program.  The more people who try the program, the 
  131.         better.   If after trying the program, you decide it is useful to 
  132.         you  and you expect to be using it in the future,  then I ask you 
  133.         to register your copy by sending $15.00 and the registration form 
  134.         found  at the end of this manual.   By registering your  copy  of 
  135.         ZYAC,  you  encourage the author to continue refining ZYAC and to 
  136.         develop  other software.   Registered users will be  notified  of 
  137.         updates  to  ZYAC,  as  well as other software developed  by  the 
  138.         author.
  139.  
  140.              As  stated  above,  you may freely copy and  distribute  the 
  141.         program to others; however, the following conditions must be met:
  142.  
  143.              1.   All  ZYAC files must be distributed in their  original, 
  144.         unmodified state.
  145.  
  146.              2.   Individuals  may  copy  and distribute  the  files  for 
  147.         evaluation so long as no price or other consideration is charged.
  148.  
  149.              3.   Non-profit  computer clubs may share the  program  with 
  150.         their members.   A distribution fee of not more than $8.00 may be 
  151.         charged for the program diskette.  All club members who intend to 
  152.         continue  using  the program after evaluation,  are requested  to 
  153.         send the $15.00 registration fee.
  154.  
  155.              The author of ZYAC makes no expressed or implied  warranties 
  156.         to   licensees  with  regard  to  this  software  including   its 
  157.         merchantability,  or its fitness for any purpose.   Neither shall 
  158.         the  author have any liability or responsibility to licensees for 
  159.         damages of any kind, including special, indirect or consequential 
  160.         damages  arising  from use of this  program.
  161.  
  162.         What is ZYAC?
  163.  
  164.              ZYAC   is  not  "Yet  Another  Compiler"  but  "Yet  Another 
  165.         Calculator" program!  I originally wrote ZYAC for the Zenith Z100 
  166.         microcomputer.   With version 1.2 of ZYAC,  I created a copy  for 
  167.         IBM-PCs  as  well.   Basically,  ZYAC  allows you  to  turn  your 
  168.         microcomputer  into  a  scientific-like  calculator.    ZYAC  can 
  169.         perform the following functions:
  170.  
  171.              1.    Standard   math  functions   (addition,   subtraction, 
  172.         multiplication, and division).
  173.  
  174.              2.   Trigonometric functions (sine, cosine, tangent, inverse 
  175.         sine,  inverse cosine,  and inverse tangent).   Also included are 
  176.         hyperbolic  sine,  hyperbolic  cosine,  and  hyperbolic  tangent.  
  177.         Radians or degrees may be used with these functions.
  178.  
  179.  
  180.                        Copyright (C) 1988 by Gregory D. Elder
  181.         ZYAC Version 2.0 Users Guide                               Page 2
  182.  
  183.  
  184.              3.   Other  functions to include factorial,  square,  square 
  185.         root,  power, reciprocal, exponential function, common logarithm, 
  186.         and natural logarithm.
  187.  
  188.              4.   Statistical functions of  summation,  mean,  population 
  189.         standard   deviation,   sample  standard  deviation,   population 
  190.         variance, and sample variance.
  191.  
  192.              5.   Conversion functions to convert between certain  metric 
  193.         and English measurements.
  194.  
  195.         ZYAC  also contains two memory registers for temporary storage of 
  196.         values   and  two  programmable  function   keys.    Furthermore, 
  197.         initialization  files may be used to automatically  load  certain 
  198.         values  or functions into the memory registers and function  keys 
  199.         at program start-up.
  200.  
  201.              I  wrote  ZYAC in C.   With version 2.0,  I switched to  the 
  202.         Datalight Optimum-C compiler.  For Z100 users, you no longer have 
  203.         to  boot  your  Z100  with the  graphics  character  set  in  the 
  204.         ALTCHAR.SYS file.  The graphics characters are now built into the 
  205.         ZYAC program.
  206.  
  207.         System Requirements
  208.  
  209.              Inorder to use ZYAC, you will need the following:
  210.  
  211.         *  A Heath/Zenith 100, 110, or 120 computer; or an IBM-PC or
  212.              compatible computer
  213.  
  214.         *  At least one diskette drive
  215.  
  216.         *  MS-DOS version 2.0 or higher
  217.  
  218.         *  A color monitor is optional
  219.  
  220.              ZYAC was developed on a Z100 with 768K of memory running MS-
  221.         DOS  version 2.18.   The IBM-PC version was developed on the same 
  222.         Z100 under ZPC (IBM-PC emulator).
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.                        Copyright (C) 1988 by Gregory D. Elder
  242.         ZYAC Version 2.0 Users Guide                               Page 3
  243.  
  244.  
  245.         Distribution Files
  246.  
  247.              ZYAC is distributed with the following files:
  248.  
  249.                   ZYAC.DOC     - Documentation file (this file).
  250.                   ZYACZ100.COM - Version of ZYAC for Z100's.
  251.                   ZYACIBM.COM  - Version of ZYAC for IBM-PC's
  252.                   SAMP.ZYC     - Sample ZYAC initialization file.
  253.  
  254.         Before  using ZYAC,  copy the appropriate version to your working 
  255.         disk  and rename the program to ZYAC.   For example,  if you  are 
  256.         using  a Z100,  copy ZYACZ100.COM to your  working  disk.   Then,  
  257.         rename the file with the DOS rename command as shown below:
  258.  
  259.                   REN ZYACZ100.COM ZYAC.COM
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.                        Copyright (C) 1988 by Gregory D. Elder
  303.         ZYAC Version 2.0 Users Guide                               Page 4
  304.  
  305.  
  306.                                   STARTING ZYAC
  307.  
  308.              ZYAC is started with a command of the following format:
  309.  
  310.                   zyac [-c] [-f] [ifile]
  311.  
  312.         The items in square brackets are optional.   The meaning of  each 
  313.         option is listed below.
  314.  
  315.              -c     =  Use color.  Without this option only black and 
  316.                        white will be displayed.
  317.  
  318.              -f     =  Use fast video output (for IBM-PCs only).  Using
  319.                        this option causes output to be written directly
  320.                        to the IBM-PC's video memory.  Not using this
  321.                        option causes output to be written using ROM
  322.                        BIOS calls (useful if your microcomputer is
  323.                        not totally IBM-PC compatible).
  324.  
  325.              ifile  =  This represents the name of an initialization
  326.                        file for ZYAC to use.  Initialization files
  327.                        are explained in more detail later in this
  328.                        manual.
  329.  
  330.         For example, if you were using an IBM-PC with a color monitor and 
  331.         wanted  to use fast screen I/O and an initialization file  called 
  332.         SAMP.ZYC, you would invoke ZYAC with this command:
  333.  
  334.                   zyac -c -f samp.zyc
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.                        Copyright (C) 1988 by Gregory D. Elder
  364.         ZYAC Version 2.0 Users Guide                               Page 5
  365.  
  366.  
  367.                                   SCREEN LAYOUT
  368.  
  369.              After  ZYAC starts operating,  various windows are drawn  on 
  370.         the screen.  The middle of the screen will display the image of a 
  371.         calculator.  At  the top of the calculator is a window called the 
  372.         numeric window  (NW).  The numeric window  echoes the numbers you 
  373.         type in,  as well as displaying the results of any operations you 
  374.         perform.   To  the  lower right of the NW is displayed  "deg"  or 
  375.         "rad".   This  indicates whether degrees of radians will be  used 
  376.         for trigonometric functions.   For Z100 users,  the keys shown on 
  377.         the calculator correspond to the keys on the Z100's keypad.   For 
  378.         example,  pressing  the UP-ARROW key on the keypad causes ZYAC to 
  379.         perform  a  multiplication  operation.   For  IBM-PC  users,  the  
  380.         calculator  keys do NOT relate to any particular  keyboard/keypad 
  381.         layout.   This is because of the different types of keypads found 
  382.         on IBM-PC's and IBM clones.   The various key operations will  be 
  383.         described later.  
  384.  
  385.              On the left hand side of the screen is the menu/help window.  
  386.         This  window displays the various ZYAC  menus.   In  addition,  a 
  387.         brief  description  of ZYAC is shown in this window whenever  the 
  388.         <HELP> key is depressed on the Z100,  or the H key on the IBM-PC.  
  389.  
  390.              On the right hand side of the screen are five windows.   The 
  391.         operator  window  at  top  displays  the  current  operator   key 
  392.         depressed by the user.   The two memory windows located below the 
  393.         operator  window  show the values saved in memory1  and  memory2.  
  394.         Finally,  below  the memory windows are windows for function keys 
  395.         F1 and F2.   These windows show the current calculator  functions 
  396.         programmed for these two keys.  
  397.  
  398.              The  bottom  of  the  screen displays  a  menu  showing  the 
  399.         operations for certain function keys.
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.                        Copyright (C) 1988 by Gregory D. Elder
  425.         ZYAC Version 2.0 Users Guide                               Page 6
  426.  
  427.  
  428.                                 ENTERING NUMBERS
  429.  
  430.              Numbers  may  be entered by typing the numeric keys  on  the 
  431.         keypad  or  keyboard.   Real numbers as well as integers  may  be 
  432.         typed  in.   Furthermore,  for very large or very small  numbers, 
  433.         scientific notation is supported.
  434.  
  435.              When typing in numbers,  you may enter in as many digits  as 
  436.         will fit in the numeric window  (16 characters).   ZYAC, however, 
  437.         will  only display real numbers out to 8 decimal places with non-
  438.         significant zeros dropped off.   For example,  if you entered the 
  439.         number 9999.012345678 and then added 0 to it,  ZYAC would display 
  440.         9999.01234568.  (Since it only displays out to the eighth decimal 
  441.         place  it  rounded the 7 up to an  8.)   Furthermore,  ZYAC  will 
  442.         display  results in scientific notation as needed.   A scientific 
  443.         notation number is one in the form of [-]x.xxxxxxxxE[-]xxx.   The 
  444.         x's  represent digits and the minus signs are optional  (if  they 
  445.         aren't  there  then  the number  is  positive).   E,  of  course, 
  446.         represents  power  of ten.   For example,  2.983E008 means  2.983 
  447.         times  10  raised to the 8th power.   This would  be  the  number 
  448.         298300000.
  449.  
  450.              Users  may  use  the 'E' key on the  keyboard  for  entering 
  451.         numbers  in scientific notation if desired.   Simply type in  the 
  452.         numeric  part  followed  by 'E'.   If the exponent  is  to  be  a 
  453.         negative  value,  then hit the <+/-> key after the 'E' to  change 
  454.         the sign.  Finally, type in the exponent part.  (The <+/-> key is 
  455.         the  <HOME> key or the '~' key on Z100's.   On IBM-PC's,  the '~' 
  456.         key  is the <+/-> key.)  Notice that hitting the <+/-> key  after 
  457.         typing  the  exponent  will result in changing the  sign  of  the 
  458.         number and not its exponent.  You can only change the sign of the 
  459.         exponent after you have typed the 'E' and before you have entered 
  460.         the  actual  exponent  part.   If you have  already  entered  the 
  461.         exponent and wish to change its sign, simply use the BACKSPACE or 
  462.         DELETE  key  to backup to the 'E'.   Then,  change the  sign  and 
  463.         reenter the exponent part.
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.                        Copyright (C) 1988 by Gregory D. Elder
  486.         ZYAC Version 2.0 Users Guide                               Page 7
  487.  
  488.  
  489.                                    USING ZYAC
  490.  
  491.              ZYAC  is  an  Algebraic Operating System  (AOS)  calculator, 
  492.         i.e.,  it  operates similar to a Texas Instrument calculator  and 
  493.         not a reverse polish notation system.   This means you enter  the 
  494.         numbers  and operators the same as if they were written on paper.  
  495.         For  example,  to do 10 - 5 + 3 = 8 you would enter 10,  hit  the 
  496.         minus operator, enter 5, hit the plus operator, enter 3, and then 
  497.         hit  the  equal  operator.   The  result,  8,  would  finally  be 
  498.         displayed.   ZYAC  does not have any operator  precedence  rules.  
  499.         All operations are performed left to right.   Therefore, 10 - 6 * 
  500.         8 is processed like (10 - 6) * 8 and not 10 - (6 * 8).
  501.  
  502.         ZYAC Commands
  503.  
  504.              Each ZYAC command is shown and described below.
  505.  
  506.         Z100       IBM-PC
  507.         KEY        KEY        FUNCTION
  508.         ====       ======     ========
  509.  
  510.         UP-ARROW   *          Multiplication operator (*).  The UP-ARROW  
  511.         *                     on the Z100 keypad and the '*' key on the 
  512.                               keyboard may be used for multiplication
  513.                               operations.  The '*' key on the IBM-PC is
  514.                               the only valid key for multiplication.
  515.  
  516.         DOWN-ARROW +          Addition operator (+).  The DOWN-ARROW on 
  517.         +                     the Z100 keypad and the '+' key on the
  518.                               keyboard may be used for addition 
  519.                               operations.  The '+' key on the IBM-PC is
  520.                               the only valid key for addition.
  521.  
  522.         RIGHT-     /          Divison operator (/).  The RIGHT-ARROW on
  523.         ARROW, /              the Z100 keypad and the '/' key on the
  524.                               keyboard may be used for divide operations.
  525.                               The '/' key on the IBM-PC is the only
  526.                               valid key for division.  If a divide by
  527.                               zero is attempted, a "DIVIDE BY 0"
  528.                               message will be shown in the numeric
  529.                               window.
  530.  
  531.         LEFT-      %          Percent operator (%). The LEFT-ARROW on 
  532.         ARROW, %              the Z100 keypad and the '%' key on the
  533.                               keyboard may be used for percent
  534.                               operations.  The '%' key on the IBM-PC is
  535.                               the only valid key for percent operations.
  536.                               Percent simply divides the current number
  537.                               by 100.
  538.  
  539.         -          -          Minus key (-) on the Z100 keypad or
  540.                               keyboard performs a subtraction operation.
  541.  
  542.  
  543.  
  544.  
  545.  
  546.                        Copyright (C) 1988 by Gregory D. Elder
  547.         ZYAC Version 2.0 Users Guide                               Page 8
  548.  
  549.  
  550.         Z100       IBM-PC
  551.         KEY        KEY        FUNCTION
  552.         ====       ======     ========
  553.  
  554.         ENTER      RETURN     Equal operator (=).  The ENTER key on the
  555.         RETURN     =          Z100 keypad, the RETURN key on the 
  556.         =                     keyboard, and the '=' key may be used for
  557.                               equal operations.  The RETURN key and '='
  558.                               key on the IBM-PC are the only valid keys
  559.                               for equal operations.  The equal operator
  560.                               completes all processing for intermediate
  561.                               and final results. 
  562.  
  563.         HOME       ~          Change sign operator (+/-).  The HOME key
  564.         ~                     on the Z100 keypad and the '~' key on the
  565.                               keyboard may be used for change sign
  566.                               operations.  The '~' key on the IBM-PC is
  567.                               the only valid key for change sign
  568.                               operations.  This is used to change the
  569.                               sign of a number or its exponent part.
  570.                               When this key is hit a positive number will
  571.                               be changed to negative, and a negative
  572.                               number will be changed to positive.  If the
  573.                               current number is positive and completely
  574.                               fills the numeric window display (16 
  575.                               characters long), the sign will not be
  576.                               changed since the addition of the '-' would
  577.                               overflow the numeric window.  To change the
  578.                               sign of an exponent, 'E' or '-' must be the
  579.                               last character shown in the numeric window.
  580.                               Otherwise, the sign of the numeric part
  581.                               will be changed.  To change the sign of an
  582.                               existing exponent, delete the exponent up
  583.                               to the 'E' or '-', change the sign, then
  584.                               retype the exponent. 
  585.  
  586.         BACKSPC    BACKSPC    Deletes the last part of a number the user
  587.         DELETE     DELETE     has entered.  Hitting the BACKSPACE key or
  588.                               DELETE key for a result returned by ZYAC
  589.                               will clear the numeric window and leave a
  590.                               0 in the display.  For example, the user
  591.                               could enter 23.5, hit the BACKSPACE or
  592.                               DELETE twice and type 5 to change the
  593.                               number to 235.  However, if the user
  594.                               entered 200 + 35 =, ZYAC would return 235.
  595.                               Hitting a BACKSPACE or DELETE here would
  596.                               result in 0 being displayed.
  597.  
  598.         |          |          Reciprocal operator (1/x).  Takes the
  599.                               number in the numeric window and divides
  600.                               it into 1.  Returns the result to the
  601.                               numeric window.
  602.  
  603.  
  604.  
  605.  
  606.  
  607.                        Copyright (C) 1988 by Gregory D. Elder
  608.         ZYAC Version 2.0 Users Guide                               Page 9
  609.  
  610.  
  611.         Z100       IBM-PC
  612.         KEY        KEY        FUNCTION
  613.         ====       ======     ========
  614.  
  615.         !          !          Factorial operator.  Returns the factorial
  616.                               of the number in the numeric window.
  617.                               Factorial is only valid for positive
  618.                               integers.  Entering a negative number for
  619.                               factorial will result in a 0.  If a
  620.                               positive real number is entered, the
  621.                               fractional part will be dropped and the
  622.                               factorial operation will be applied to the
  623.                               remaining integer part.  170! is about the
  624.                               largest factorial that can be computed
  625.                               before the values begin to overflow.  If
  626.                               you attempt to find the factorial of a
  627.                               number larger than 170, "TOO BIG" will be
  628.                               displayed in the numeric window.
  629.  
  630.         >          >          Square operator.  Returns the square of the
  631.                               number displayed in the numeric window.
  632.  
  633.         <          <          Square root operator.  Returns the square
  634.                               root of the number displayed in the
  635.                               numeric window.  If you try to find the
  636.                               square root of a negative number, the
  637.                               message "NEGATIVE SQRT" will be displayed
  638.                               in the numeric window.
  639.  
  640.         ^          ^          Power operator (x raised to the y power).
  641.                               Returns 0 if both x and y are 0 or if y
  642.                               is negative and is not an integer.  Will
  643.                               return 1E300 if the result would overflow. 
  644.  
  645.         L          L          Log base 10 operator.  Returns the
  646.                               logarithm to the base 10 of the number
  647.                               displayed in the numeric window.  Returns 0
  648.                               if the number is 0 or negative.
  649.  
  650.         CTRL-L     CTRL-L     Natural log operator.  Returns the natural
  651.                               logarithm for the number displayed in the
  652.                               numeric window.  Returns 0 if the number is
  653.                               0 or negative.
  654.  
  655.         R          R          Toggles between radians and degrees.
  656.                               Allows you to choose radians or degrees
  657.                               for trigonometric operations.
  658.  
  659.         C          C          Cosine operator.  Returns the cosine of
  660.                               the number displayed in the numeric window.
  661.  
  662.         CTRL-C     CTRL-C     Arc cosine operator.  Returns the inverse
  663.                               cosine of the number shown in the numeric
  664.                               window. 
  665.  
  666.  
  667.  
  668.                        Copyright (C) 1988 by Gregory D. Elder
  669.         ZYAC Version 2.0 Users Guide                               Page 10
  670.  
  671.  
  672.         Z100       IBM-PC
  673.         KEY        KEY        FUNCTION
  674.         ====       ======     ========
  675.  
  676.         S          S          Sine operator.  Returns the sine of the
  677.                               number displayed in the numeric window.
  678.  
  679.         CTRL-S     CTRL-S     Arc sine operator.  Returns the inverse
  680.                               sine of the number shown in the numeric
  681.                               window.
  682.  
  683.         T          T          Tangent operator.  Returns the tangent of
  684.                               the number displayed in the numeric window.
  685.  
  686.         CTRL-T     CTRL-T     Arc tangent operator.  Returns the inverse
  687.                               tangent of the number shown in the numeric
  688.                               window.
  689.  
  690.         O          O          Hyperbolic cosine operator.  Returns the
  691.                               hyperbolic cosine of the number shown in
  692.                               the numeric window.
  693.  
  694.         I          I          Hyperbolic sine operator.  Returns the
  695.                               hyperbolic sine of the number shown in
  696.                               the numeric window.
  697.  
  698.         U          U          Hyperbolic tangent operator.  Returns
  699.                               the hyperbolic tangent of the number
  700.                               shown in the numeric window.
  701.  
  702.         CTRL-E     CTRL-E     Exponential  operator.  Returns the
  703.                               exponential function of the number
  704.                               displayed in the numeric window, i.e., e
  705.                               raised to the power of the number being
  706.                               displayed.
  707.  
  708.         P          P          Pi.  Returns the value of pi out to 8
  709.                               decimal places (3.14159265).
  710.  
  711.         K          K          Conversions operator.  Displays the
  712.                               conversions menu and allows you to
  713.                               convert between certain metric and
  714.                               English measurements.  (Additional
  715.                               information about this function is
  716.                               provided elsewhere in this manual.
  717.  
  718.         Z          Z          Summation operator.  This operator places
  719.                               ZYAC into statistics mode.  This function
  720.                               allows you to enter and sum data for
  721.                               calculation of mean, variance, and 
  722.                               standard deviation.  Pressing any non-
  723.                               statistics operator key will remove ZYAC
  724.                               from statistics mode.  Also, ZYAC will
  725.                               only sum up to a maximum of 100 data
  726.                               points (values).
  727.  
  728.  
  729.                        Copyright (C) 1988 by Gregory D. Elder
  730.         ZYAC Version 2.0 Users Guide                               Page 11
  731.  
  732.  
  733.         Z100       IBM-PC
  734.         KEY        KEY        FUNCTION
  735.         ====       ======     ========
  736.  
  737.         M          M          Mean operator.  Returns the mean of the
  738.                               data summed by the summation operator.
  739.  
  740.         D          D          Population standard deviation operator.
  741.                               Returns the population standard deviation
  742.                               of the data summed by the summation
  743.                               operator.  Uses n weighting (for popula-
  744.                               tion data), where n is the number of
  745.                               data points summed.
  746.  
  747.         CTRL-D     CTRL-D     Sample standard deviation operator.
  748.                               Returns the sample standard deviation of
  749.                               the data summed by the summation operator.
  750.                               Uses n - 1 weighting (for sample data),
  751.                               where n is the number of data points
  752.                               summed.
  753.  
  754.         V          V          Population variance operator.  Returns the
  755.                               population variance of the data summed by
  756.                               the summation operator.  Uses n weighting
  757.                               (for population data), where n is the 
  758.                               number of data points summed.
  759.  
  760.         CTRL-V     CTRL-V     Sample variance operator.  Returns the
  761.                               sample variance of the data summed by the
  762.                               summation operator.  Uses n - 1 weighting
  763.                               (for sample data), where n is the number
  764.                               of data points summed.
  765.  
  766.         NOTE:   A  population  is usually a large set of items,  while  a 
  767.         sample  is a smaller portion selected from the  population.   The 
  768.         difference  between sample and population calculations  is  small 
  769.         for more than 30 data points (values).
  770.  
  771.         F0         F10        Clear all operator (CLR).  Function key F0
  772.                               on the Z100 and F10 on the IBM-PC clears
  773.                               the numeric display to 0, and also clears
  774.                               the two memory registers (windows).
  775.  
  776.         F1         F1         Function 1 operator.  Function key F1
  777.                               performs the operation currently defined
  778.                               for F1.
  779.  
  780.         <SH>F1     <SH>F1     Define function 1 operator.  Shift
  781.                               function key F1 allows the user to program
  782.                               an operation for function key F1.  Use
  783.                               CTRL-X to end the definition.
  784.  
  785.         F2         F2         Function 2 operator.  Function key F2
  786.                               performs the operation currently defined
  787.                               for F2.
  788.  
  789.  
  790.                        Copyright (C) 1988 by Gregory D. Elder
  791.         ZYAC Version 2.0 Users Guide                               Page 12
  792.  
  793.  
  794.         Z100       IBM-PC
  795.         KEY        KEY        FUNCTION
  796.         ====       ======     ========
  797.  
  798.         <SH>F2     <SH>F2     Define function 2 operator.  Shift
  799.                               function key F2 allows the user to program
  800.                               an operation for function key F2.  Use
  801.                               CTRL-X to end the definition.
  802.  
  803.         F3         F3         Store memory 1 operator.  Function key F3
  804.                               stores the current number displayed in the
  805.                               numeric window into memory register 1.
  806.                               The stored value is shown in the memory 1
  807.                               window.
  808.  
  809.         <SH>F3     <SH>F3     Recall memory 1 operator.  Shift function
  810.                               key F3 recalls the value stored in memory
  811.                               register 1.  The returned number is then
  812.                               displayed in the numeric window.
  813.  
  814.         F4         F4         Store memory 2 operator.  Function key F4
  815.                               stores the current number displayed in the
  816.                               numeric window into memory register 2.
  817.                               The stored value is shown in the memory 2
  818.                               window.
  819.  
  820.         <SH>F4     <SH>F4     Recall memory 2 operator.  Shift function
  821.                               key F4 recalls the value stored in memory
  822.                               register 2.  The returned number is then
  823.                               displayed in the numeric window.
  824.  
  825.         F5         F5         Clear numeric window only operator (CE).
  826.                               Function key F5 clears the numeric window
  827.                               only, and sets it to 0.  The memory
  828.                               registers are left unchanged.
  829.  
  830.         ?          ?          Next menu operator.  Displays the next
  831.                               menu in the menu window.
  832.  
  833.         HELP       H          Help operator.  Displays a brief message
  834.                               about ZYAC in the menu window.  (Really
  835.                               not much help, but it does refer the user
  836.                               to this document.)  Use the HELP key on
  837.                               the Z100 or the H key on an IBM-PC
  838.                               for help.
  839.  
  840.         CTRL-X     CTRL-X     Exit operator.  Exits the ZYAC program.
  841.                               If values are stored in the memory
  842.                               registers, or functions defined for F1
  843.                               and F2, ZYAC will ask if you want to save
  844.                               the memory registers and functions in a
  845.                               file before exiting.
  846.  
  847.  
  848.  
  849.  
  850.  
  851.                        Copyright (C) 1988 by Gregory D. Elder
  852.         ZYAC Version 2.0 Users Guide                               Page 13
  853.  
  854.  
  855.         Conversions
  856.  
  857.              The  K  key is the conversions operator.   It allows you  to 
  858.         perform   conversions   between  certain   metric   and   English 
  859.         measurements.   After  pressing K,  the conversions menu will  be 
  860.         displayed.   At this point,  you may press the appropriate letter 
  861.         to convert your data (the conversion affects the current value in 
  862.         the  numeric window).   Listed below are the current  conversions 
  863.         built  into  ZYAC.   Please note that  pressing  CONTROL-letter 
  864.         performs the opposite conversion.  For example, A converts inches 
  865.         to centimeters.  CONTROL-A converts centimeters to inches.
  866.  
  867.         LETTER     CONVERSION
  868.         ======     ==========
  869.  
  870.         A          Inches to Centimeters
  871.         B          Feet to Meters
  872.         C          Yards to Meters
  873.         D          Miles to Kilometers
  874.         E          Ounces to Grams
  875.         F          Pounds to Kilograms
  876.         G          Gallons (US) to Liters
  877.         H          Gallons (Imperial) to Liters
  878.         I          Fluid Ounces to Milliliters
  879.         J          Square Inches to Square Centimeters
  880.         K          Square Feet to Square Meters
  881.         L          Fahrenheit to Celsius
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.                        Copyright (C) 1988 by Gregory D. Elder
  913.         ZYAC Version 2.0 Users Guide                               Page 14
  914.  
  915.  
  916.         Defining Functions
  917.  
  918.              ZYAC  allows  you to program functions for function keys  F1 
  919.         and  F2.   You do this by typing shift F1 or shift F2.   At  that 
  920.         point,  you  may  enter  ZYAC commands as  if  you  were  working 
  921.         interactively.   The  key strokes will be displayed at the bottom 
  922.         of  the screen.   When you have finished entering  the  function, 
  923.         type  CTRL-X.   The  function  will  then  be  displayed  in  the 
  924.         appropriate function window.
  925.  
  926.              Functions  are  only allowed to be 68 characters long  (this 
  927.         includes  the space between operators and operands  automatically 
  928.         supplied by ZYAC).   If you wish the value in the numeric  window 
  929.         to  be  used in the function,  type 'N' at the appropriate  place 
  930.         during the function definition.   'NW' will be displayed  (stands 
  931.         for numeric window).   For example,  to define function F1 to add 
  932.         100  to the numeric display and then divide by 7 you would  enter 
  933.         shift F1, followed by 'N', '+', '10', '/', '7', '=', CTRL-X.  The 
  934.         F1 window would display 'NW + 10 / 7 ='.  Then, each time you hit 
  935.         the  F1 key,  the defined function would be applied on the  value 
  936.         currently  in the numeric window.   By the way,  if your  defined 
  937.         function  is too long for its display window,  only as much of it 
  938.         as possible will be shown. 
  939.  
  940.              The  BACKSPACE and DELETE keys may be used  during  function 
  941.         definitions  to  make  corrections before you  type  the  CTRL-X.  
  942.         These  keys will either delete an entire operator or one digit at 
  943.         a  time,  depending on the last entry in the definition  (whether 
  944.         it's  a number or an operator).   To delete a  defined  function, 
  945.         simply  begin  the  function definition and type  CTRL-X  (you're 
  946.         defining nothing this way).
  947.  
  948.              One  final  note on functions,  they cannot  perform  memory 
  949.         stores or other function calls.   They can,  however,  do  memory 
  950.         recalls.
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.                        Copyright (C) 1988 by Gregory D. Elder
  974.         ZYAC Version 2.0 Users Guide                               Page 15
  975.  
  976.  
  977.         Initialization Files
  978.  
  979.              If   you  have  a  specific  function  or  number  you   use 
  980.         frequently,  you  can store it in an initialization file.   Then, 
  981.         ZYAC will be able to initialize its memory registers and function 
  982.         keys  (F1 and F2) to the information in that file the  next  time 
  983.         you use ZYAC.
  984.  
  985.              To  create such a file,  simply use an editor like  WordStar 
  986.         and create a file with a '.ZYC' extension.   To initialize memory 
  987.         1 enter 'M1:  ' in the file, followed by the number to initialize 
  988.         memory  1  by.   For example,  to initialize memory 1 to  2.88976 
  989.         enter the following line in the file:
  990.  
  991.              M1: 2.88976
  992.  
  993.         Memory  2  may be initialized the same way,  except  use  'M2:  ' 
  994.         instead of 'M1: '. 
  995.  
  996.              Defining function keys F1 and F2 is similar.   Start with  a 
  997.         line containing 'F1:  ' or 'F2: '.  Then type in a function using 
  998.         numbers and ZYAC commands.  When entering commands in a file this 
  999.         way,  you  need  to  type in the corresponding  acronym  for  the 
  1000.         command.  These are listed below.
  1001.  
  1002.         OPERATION          ACRONYM
  1003.         =========          =======
  1004.  
  1005.         addition              +
  1006.         subtraction           -
  1007.         multiplication        *
  1008.         division              /
  1009.         sign change           ~
  1010.         equals                =
  1011.         reciprocal            |
  1012.         factorial             !
  1013.         percent               %
  1014.         square                >
  1015.         square root           <
  1016.         power                 ^
  1017.         pi                   PI
  1018.         numeric window       NW
  1019.         natural log          LN
  1020.         exponential func.    XP
  1021.         log base 10         LOG
  1022.         cosine              COS
  1023.         sine                SIN
  1024.         tangent             TAN
  1025.         inverse cosine     ACOS
  1026.         inverse sine       ASIN
  1027.         inverse tangent    ATAN
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.                        Copyright (C) 1988 by Gregory D. Elder
  1035.         ZYAC Version 2.0 Users Guide                               Page 16
  1036.  
  1037.  
  1038.         OPERATION          ACRONYM
  1039.         =========          =======
  1040.  
  1041.         hyperbolic cosine  HCOS
  1042.         hyperbolic sine    HSIN
  1043.         hyperbolic tangent HTAN
  1044.         recall memory 1     1RC
  1045.         recall memory 2     2RC
  1046.  
  1047.              For example, to define function key F1 to cube the number in 
  1048.         the numeric display,  divide the result by pi,  and then take the 
  1049.         natural  log,  you  would type a line like the following  in  the 
  1050.         file:
  1051.  
  1052.              F1: NW ^ 3 / PI = LN
  1053.  
  1054.         Notice  that  you must separate the numbers and operators  by  at 
  1055.         least  one  space.   If you want a certain number in  a  function 
  1056.         definition to be negative,  you must use the '~' operator.  A '-' 
  1057.         by itself will be taken as a subtraction operation.  For example, 
  1058.         to  multiply  -23.109 by the numeric window value,  the  function 
  1059.         defintion would look like
  1060.  
  1061.              F1:  NW * 23.109 ~ =
  1062.  
  1063.         The '~' will change the sign of 23.109 before the multiplication.  
  1064.         The  one  place where a negative sign is valid is  in  scientific 
  1065.         notatation.  You can enter a number like 2.88741E-5.  
  1066.  
  1067.              Once you have created your initialization file,  you can use 
  1068.         it  with ZYAC.   Typing ZYAC followed by a space and the filename 
  1069.         causes ZYAC to initialize the memory registers and function  keys 
  1070.         to the values/definitions in that file.   For example, to use the 
  1071.         information   supplied  with  the  sample  initialization   file, 
  1072.         SAMP.ZYC,  type ZYAC SAMP at  the DOS prompt.   You can type  out 
  1073.         the  SAMP.ZYC file to see an example of an  initialization  file.  
  1074.  
  1075.              If  you  have saved values in memory registers  and/or  have 
  1076.         defined functions F1 or F2 while using ZYAC, you will be asked if 
  1077.         you  want to save the memory contents and functions upon  exiting 
  1078.         ZYAC.   If  you answer yes,  ZYAC will prompt for a filename  and 
  1079.         save the memory values and functions in that file (thus  creating 
  1080.         another initialization file for future use).
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.                        Copyright (C) 1988 by Gregory D. Elder
  1096.         ZYAC Version 2.0 Users Guide                               Page 17
  1097.  
  1098.  
  1099.                                  PROGRAM HISTORY
  1100.  
  1101.         8 Sep 1985  - Version 1.0.   Initial release of ZYAC.   This 
  1102.                       version for the Z100 only.
  1103.  
  1104.         12 Sep 1985 - Version 1.1.   Corrected bug in factorial function.  
  1105.                       Earlier version would attempt to find factorial of
  1106.                       any number, even those larger than 170.
  1107.  
  1108.         17 Feb 1987 - Version 1.2.  Version for IBM-PC's created.  Writes
  1109.                       to the screen for the Z100 version now faster under
  1110.                       MS-DOS 2.x.
  1111.  
  1112.         12 Mar 1988 - Version 2.0.  Converted program to Datalight 
  1113.                       Optimum-C.  Added statistical operators, con-
  1114.                       versions, hyperbolic functions, and use of
  1115.                       degrees or radians for trigonometric functions.
  1116.                       Added option to use color.  Added option in IBM-PC
  1117.                       version for fast video I/O.  Program now available
  1118.                       under the Shareware concept.
  1119.  
  1120.                 I  am  open to any comments or suggestions you  may  have 
  1121.         about ZYAC.  Please let me know what you think of the program.  I 
  1122.         am considering working on a memory resident version of ZYAC.  Any 
  1123.         interest for such a beast?
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.                        Copyright (C) 1988 by Gregory D. Elder
  1157.         ZYAC Version 2.0 Users Guide                               Page 18
  1158.  
  1159.  
  1160.                                 REGISTRATION FORM
  1161.  
  1162.              To  register your copy of ZYAC,  complete this form and mail 
  1163.         it with a check for $15.00 to the author:
  1164.  
  1165.                                 Gregory D. Elder
  1166.                                    Qtrs 4301-A
  1167.                                  USAFA, CO 80840
  1168.  
  1169.  
  1170.         NAME_____________________________________________________
  1171.  
  1172.         STREET___________________________________________________
  1173.  
  1174.         CITY________________________  STATE_______  ZIP__________
  1175.  
  1176.         COMPUTER MODEL___________________________________________
  1177.  
  1178.         COLOR MONITOR (YES/NO)________  AMOUNT OF MEMORY_________
  1179.  
  1180.         OPERATING SYSTEM AND VERSION_____________________________
  1181.  
  1182.         HOW DID YOU FIND OUT ABOUT ZYAC?________________________________
  1183.  
  1184.         ________________________________________________________________
  1185.  
  1186.         COMMENTS/SUGGESTIONS/BUG REPORTS:_______________________________
  1187.  
  1188.         ________________________________________________________________
  1189.  
  1190.         ________________________________________________________________
  1191.  
  1192.         ________________________________________________________________
  1193.  
  1194.         ________________________________________________________________
  1195.  
  1196.         ________________________________________________________________
  1197.  
  1198.         ________________________________________________________________
  1199.  
  1200.         ________________________________________________________________
  1201.  
  1202.                 Thank  you  for  registering your copy  of  ZYAC.   As  a 
  1203.         registered  user,  you are encouraging me to  continue  improving 
  1204.         ZYAC and to develop additional software.  You will be notified of 
  1205.         any updates or software I develop.
  1206.  
  1207.  
  1208.              
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.                        Copyright (C) 1988 by Gregory D. Elder
  1217.